﻿<Page
    x:Class="PanViewDemoApp.ZeroCtrPtExample"
    IsTabStop="false"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PanViewDemoApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontSize="20">
    <Canvas>
        <Border
            Height="120"
            Width="200"
            Background="#4000FF00">
            <Border.RenderTransform>
                <CompositeTransform
                    x:Name="M"
                    TranslateX="80"
                    TranslateY="60"
                    Rotation="40"
                    CenterX="100"
                    CenterY="30" />
            </Border.RenderTransform>
            <TextBlock
                Margin="3"
                Foreground="Green">Tx=80 Ty=60<LineBreak />R=40 Cx=100 Cy=30</TextBlock>
        </Border>
        <Border
            Height="120"
            Width="200"
            BorderThickness="3"
            BorderBrush="Blue">
            <Border.RenderTransform>
                <CompositeTransform
                    x:Name="N"
                    TranslateX="122.7"
                    TranslateY="2.7"
                    Rotation="40" />
            </Border.RenderTransform>
            <TextBlock
                VerticalAlignment="Bottom"
                Foreground="Blue"
                Margin="3">Tx=122.7 Ty=2.7<LineBreak />R=40 Cx=0 Cy=0</TextBlock>
        </Border>
    </Canvas>
</Page>